﻿using ConfExpert.Forms.Base;
using ConfExpert.Utility;
using DevTeam;
using System;

namespace ConfExpert.Forms.Depo
{
    public partial class _BlokeKoy : XForm
    {
        int CustomerId;
        public _BlokeKoy(int CustomerId)
        {
            InitializeComponent();
            this.CustomerId = CustomerId;
            this.Text += ". " + AppSession.Lookups.V_Customer.FindByCustomerId(CustomerId).Name;
        }

        private void BlokeKoy_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetBloke", CustomerId);
            gridView1.FormatAsNumber(1, "QtyA", "QtyG", "QtyNeeded", "QtyReserved", "QtyMissing");
            gridView1.AddSummary("QtyA", "QtyG", "QtyNeeded", "QtyReserved", "QtyMissing");
            gridView1.BestFitColumns();
        }
    }
}